< previous page page_615 next page >

Page 615
0615-01.jpg
Figure 15.10.
Using the 
WHERE clause to limit Make Table queries.
Type.gifListing 15.10. Using GROUP BY and HAVING to summarize data.
//
// sqlvb07.sqv - Testing Make Table Queries
//
// create a database
dbMake sqlvb07.mdb;
// create a base table
CREATE TABLE BaseTable
   (CustID TEXT(10) CONSTRAINT PKBaseTable PRIMARY KEY,
    CustName TEXT(30),
    CustBalance CURRENCY,
    CustType TEXT(10),
    Notes MEMO
   );
// add some data
INSERT INTO BaseTable VALUES
   ('CUST01',
    'Willingham & Associates',
    '300.65',
    'RETAIL',
    'This is a comment'
   );
INSERT INTO BaseTable VALUES
   ('CUST02',
    'Parker & Parker',
    '1000.29',
    'WHOLESALE',
    'This is another comment'
continues

 
< previous page page_615 next page >

If you like this book, buy it!